# encoding='utf-8'
# Mongo数据库连接配置
MONGODB_CONFIG = {
    'host': '59.110.215.133',
    'port': 37017,
    'db_name': 'auto',
    'username': 'auto',
    'password': 'auto2018',

}


REDIS_SETTINGS = dict(
    HOST='127.0.0.1',
    PORT=6379,
    DB=15,
    PASSWORD="qingyuan2018",
    CACHE_DB=14,
)



LOG_PATH = '/data/dev_logs/'
LOG_LEVEL = 'INFO'

MAX_COUNT = 3

# Rabbit配置
# 解析详情页
RABBITMQ_CONFIG = {
    'host': '47.94.42.60',
    'port': 5672,
    'user': 'guest',
    'password': 'guest',
    # task url队列
    'task_queue': 'autospider',
    'task_exchange': 'uweibomatchv4',
    'task_routing_key': 'autospider_key',
    # 文章url队列
    'url_queue':'autospider_url',
    'url_exchange':'uweibomatchv4',
    'url_routing_key':'autospider_url_key',
}


# 图片路径
# IMAGE_PATH = '/data/auto_crawl/img/'
#IMAGE_PATH = '/home/ag/Desktop/shijue_auto_crawler/img/'


URL_REGULAR_FILTER=[
    r'[\s\S]*[Ss][Ee][Aa][Rr][Cc][Hh][\s\S]*',
    r'[\s\S]*[Ll][Oo][Gg][Ii][Nn][\s\S]*',
    r'[\s\S]*[Aa][Uu][tT][hH][\s\S]*',
    r'[\s\S]*[Uu][Ss][Ee][Rr][\s\S]*',
]